import { procedure, router } from '../trpc';
import { z } from 'zod';
import markdownService from '@/service/markdown';

export const botRouter = router({
    htmlToMd: procedure
        .input(z.string())
        .query(({ input }) => {
            return markdownService.htmlToMd(input);
        }),
    simpleHtml: procedure
        .input(z.string())
        .query(({ input }) => {
            return markdownService.simpleHtml(input);
        })
});